diff options
Diffstat (limited to 'src/pages/[...path].tsx')
-rw-r--r-- | src/pages/[...path].tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pages/[...path].tsx b/src/pages/[...path].tsx index cf5db8c..06ad09d 100644 --- a/src/pages/[...path].tsx +++ b/src/pages/[...path].tsx @@ -8,6 +8,7 @@ import emojiPlugin from '../emojiPlugin'; import remarkGemoji from 'remark-gemoji'; import benzinConfig from '../config'; import Code from '../Code'; +import remarkGfm from 'remark-gfm'; const transformLinkUri = (uri: string): string => { return uri.match(/(.*)\.md/)?.[1] || uri; @@ -64,7 +65,7 @@ const Page: NextPage = ({ markdownSource, emojiFileNames }: any) => { <ReactMarkdown transformLinkUri={transformLinkUri} transformImageUri={transformImageUri} - rehypePlugins={[emojiPlugin(emojiFileNames), remarkGemoji]} + rehypePlugins={[emojiPlugin(emojiFileNames), remarkGemoji, remarkGfm]} components={{ emoji: Emoji, img: Image, |